main: Don't look at first GTK_DISPLAY_DEBUG_CHECK parameter...
authorTimm Bäder <mail@baedert.org>
Sat, 7 Jul 2018 09:37:24 +0000 (11:37 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 8 Jul 2018 07:41:15 +0000 (09:41 +0200)
commitdbf32933bff50eda20684c4248ac158b76ec8b79
tree0f7cd676b35b800eeff02615e79f3b0027ebcea7
parentaf8fe182c85611b35b953ffd05d65f4bdf05cc3c
main: Don't look at first GTK_DISPLAY_DEBUG_CHECK parameter...

... if none of the debug displays have any debug flags set. This way, we
can ignore the first parameter to e.g. GTK_DISPLAY_NOTE, which is
usually a call to gtk_widget_get_display.

Before this patch, gtk_widget_get_display was the slowest part of
gtk_widget_query_size_for_orientation.
gtk/gtkmain.c
gtk/gtkprivate.h